class Company < ActiveRecord::Base
  
  # Has many
  has_many :users, :dependent => :destroy
  has_many :projects, :dependent => :destroy
  
  validates_presence_of :name
  validates_uniqueness_of :subdomain
   
  # Prevents a user from submitting a crafted form
  attr_accessible :name, :subdomain
  
end
